var Module = require("./cyclone_parser");
var acorn = require('acorn');
console.log(acorn.parse("let a = 1 ", { ecmaVersion : 2020 }))
setTimeout( ()=>{
    var instance = new Module.EmbindParser(); // this will print "Hello world!!!""
    console.log(instance.parse("program","let a = 1 ;")); // this will print "something"
} , 1000)
// Module.onRuntimeInitialized = async function(){
//     // uncommentthe code below to output the Module in the console
//     // console.log('Module loaded: ', Module);
//     var instance = new Module.EmbindParser(); // this will print "Hello world!!!""
//     console.log(instance.parse("program","let a = 1 ;")); // this will print "something"
// }
// var instance = new Module.EmbindParser(); // this will print "Hello world!!!""
// console.log(instance.parse("program","let a = 1 ;")); // this will print "something"
console.log("I come here");